import request from '@/common/request.js'	

/**
 * 工地评价
 */

// 获取已评价信息 通过工地编码
export function listBySubDh(params){
	return new Promise(function(resolve, reject) {
		request({
			url: "customer/comment/listBySubDh",
			method: "get",
			data: params
		}).then(res => {
			return resolve(res)
		})
	})		
}
// 获取待评价信息 通过工地编码
export function unlistBySubDh(params){
	return new Promise(function(resolve, reject) {
		request({
			url: "customer/comment/unlistBySubDh",
			method: "get",
			data: params
		}).then(res => {
			return resolve(res)
		})
	})		
}
// 创建保存
export function commentCreate(params){
	return new Promise(function(resolve, reject) {
		request({
			url: "customer/comment/create",
			method: "post",
			data: params
		}).then(res => {
			return resolve(res)
		})
	})		
}
